package com.twu.biblioteca.librarycollection;

import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * User: Maximilian
 * Date: 26/09/13
 * Time: 1:36 PM
 * To change this template use File | Settings | File Templates.
 */
public class LibraryCollection {
    BookCollection bookCollection = new BookCollection();
    MovieCollection movieCollection = new MovieCollection();

    public void addBook(String book)
    {
        bookCollection.addBook(book);
    }

    public List<String> getBooks()
    {
        return bookCollection.getBooks();
    }

    public boolean isBookAvailable(String book)
    {
        return bookCollection.isBookAvailable(book);
    }

    public void addMovie(String title, String year, String director, int rating) throws DuplicateMovieException
    {
        movieCollection.addMovie(title, year, director, rating);
    }

    public String getMoviesString()
    {
        return movieCollection.getMovieListString();
    }
}
